﻿namespace _05.BitArray64Exercise
{
    using System;

    class BitArray64Exercise
    {
        static void Main()
        {
            long number = 6977184130853249597;
            Console.WriteLine(Convert.ToString(number, 2).PadLeft(64, '0'));

            BitArray64 bitArrayNumber1 = new BitArray64((ulong)number);
            Console.WriteLine(bitArrayNumber1);

            foreach (var bit in bitArrayNumber1)
            {
                Console.Write(bit);
            }
            Console.WriteLine();

            BitArray64 bitArrayNumber2 = new BitArray64((ulong)number);
            Console.WriteLine(bitArrayNumber1.Equals(bitArrayNumber2));

            Console.WriteLine(bitArrayNumber1[2]);
            
            Console.WriteLine(bitArrayNumber1.GetHashCode());

            Console.WriteLine(bitArrayNumber1.Number);
        }
    }
}